﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WuLiu.Spider.BLL
{
    [Serializable]
    public class MatchHtmlTag
    {
        [NonSerialized]
        public static string HtmlTagRegex = "<[^>]+>";

        public MatchHtmlTag()
        {
            TagAttributeList = new MatchTagAttributeCollection();
        }

        /// <summary>
        /// 配置文件中的索引
        /// </summary>
        public int Index
        {
            get;
            set;
        }

        /// <summary>
        /// 配置文件描述
        /// </summary>
        public string Desc
        {
            get;
            set;
        }

        /// <summary>
        /// html 标签
        /// </summary>
        public string HtmlTag
        {
            get;
            set;
        }

        /// <summary>
        /// html 标签属性列表
        /// </summary>
        public MatchTagAttributeCollection TagAttributeList
        {
            get;
            set;
        }

        /// <summary>
        /// 包含的文本
        /// </summary>
        public string IncludeText
        {
            get;
            set;
        }
    }
}
